package mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import model.THospital;

public interface THospitalMapper {
	
	List<THospital> selectByAreaAndGrade(
		@Param("area") String area,
		@Param("geate") String grade
	);
	
	int insertMany(
		@Param("hospitals") List<THospital> hospitals
	);

    int deleteByPrimaryKey(Integer hid);

    int insert(THospital row);

    THospital selectByPrimaryKey(Integer hid);

    List<THospital> selectAll();

    int updateByPrimaryKey(THospital row);
   
    THospital selectHospitalDeptsByHName(
		@Param("hName") String hName
	);
    
    int dynaUpdateByPrimaryKey(THospital record);
    
}